import request from '@/utils/request';

/**
 * 分页
 * @returns {Promise<any>}
 * @param params
 */
export async function getPageData(params) {
  return request(`/api/cdcerservice/v1/gastroscopestatistics/listPageData`, {
    method: 'POST',
    requestType: 'form',
    data: { ...params },
  });
}

/**
 * 点击查看按钮
 * @returns {Promise<any>}
 * @param params
 */
export async function findByOrgIdAndUploadYear(params) {
  return request(`/api/cdcerservice/v1/gastroscopestatistics/findByOrgIdAndUploadYear`, {
    method: 'POST',
    requestType: 'form',
    data: { ...params },
  });
}

/**
 * 改变状态按钮
 * @returns {Promise<any>}
 * @param params
 */
export async function changStatus(params) {
  return request(`/api/cdcerservice/v1/gastroscopestatistics/changStatus`, {
    method: 'POST',
    requestType: 'form',
    data: { ...params },
  });
}
